import { ApiProperty } from '@nestjs/swagger'

export class TokenItem {
  @ApiProperty({ description: 'token', example: 'abcdefg' })
  token: string
}

export class TokenVO {
  @ApiProperty({ type: TokenItem })
  info: TokenItem
}

export class TokenResponse {
  @ApiProperty({ description: '状态码', example: 200 })
  code: number

  @ApiProperty({ description: '数据', type: () => TokenVO, example: TokenVO })
  data: TokenVO

  @ApiProperty({ description: '请求结果信息' })
  message: string
}
